package com.netease.yunxin.app.im.welcome;

import androidx.annotation.Nullable;

import com.netease.nimlib.sdk.NIMClient;
import com.netease.nimlib.sdk.msg.MsgService;
import com.netease.yunxin.kit.chatkit.model.ConversationInfo;
import com.netease.yunxin.kit.chatkit.repo.ConversationRepo;
import com.netease.yunxin.kit.corekit.im.provider.FetchCallback;
import com.netease.yunxin.kit.corekit.im.repo.SettingRepo;

import java.util.List;

public class ConversationHelper {
    public void clear(){
        ConversationRepo.getAllSessionList((conversationInfo, t1) -> 0, new FetchCallback<List<ConversationInfo>>() {
            @Override
            public void onSuccess(@Nullable List<ConversationInfo> conversationInfos) {
//                ConversationRepo.deleteSession();
            }

            @Override
            public void onFailed(int i) {

            }

            @Override
            public void onException(@Nullable Throwable throwable) {

            }
        });
    }
}
